﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Warehouse.DataAccess
{
    public partial class Module : CustomeEntity<Module>
    {
        public static Module[] GetModules()
        {
            using (WarehouseClassesDataContext context = new WarehouseClassesDataContext())
            {
                return (from m in context.Module select m).ToArray();
            }
        }

        protected override System.Linq.Expressions.Expression<Func<Module, bool>> GetPredicate()
        {
            return p => p.ID == this.ID;
        }
    }
}
